﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="player_add" data-title="添加播放器" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span>添加播放器</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">播放器列表</a></li>
							<li class="ali-active"><a>添加播放器</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
                            <tr>
                                <th>名称：</th>
                                <td><input type="text" name="Name" size="30" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
                            </tr>
                            <tr>
                                <th>代码：</th>
                                <td>
                                    {#ID#} : 播放器ID<br />
                                    {#File#} : 文件路径<br />
                                    <textarea type="text" name="Code" cols="80" rows="10" wrap="off"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th>打包扩展名：</th>
                                <td><input type="text" name="PackExtention" size="10" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
                            </tr>
                            <tr>
                                <th>打包：</th>
                                <td>
                                    {#Name#}：媒体名称<br />
                                    {#URL#}：媒体地址<br />
                                    <textarea type="text" name="Pack" cols="80" rows="10" wrap="off"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <th>文件：</th>
                                <td>
  									<input type="text" name="File"  size="60" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
                              </td>
                            </tr>
                            <tr>
                                <th>规则：</th>
                                <td>
                                    <textarea type="text" name="Rule" cols="80" rows="4" wrap="off"></textarea>
                                    <ul>
                                        <li>播放页面地址中获取播放地址的规则。</li>
                                        <li>一行或三行。如果只从播放页面地址中能获取播放地址，则写一行正则表达式。</li>
                                        <li>如果页面内容中获取播放地址，则第一行正则表达式获取网页地址，第二行是编码（GB2312，BIG5，UTF-8），第三行正则表达式从网页内容中获取播放地址。</li>
                                        <li>每一行正则表达式可用组名"v"。</li>
                                    </ul>
                                </td>
                            </tr>
                            <tr>
                                <th>类型：</th>
                                <td>
                                    <label><input type="radio" name="Type" value="Video" checked>视频播放器</label>
                                    <label><input type="radio" name="Type" value="Audio">音乐播放器</label>
                                </td>
                            </tr>
                            <tr>
                                <th>描述：</th>
                                <td><textarea type="text" name="Description" cols="80" rows="10" wrap="off" class="ali-input <%=ContentLang%>Font"></textarea></td>
                            </tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">添 加</button></div>
	</form>
</section>